<template>
    <div class="container">
        <div class="login-wrapper">
            <div class="header">注册</div>
            <div class="form-wrapper">
                <input type="text" name="username" placeholder="账户" class="input-item">
                <input type="password" name="password" placeholder="密码" class="input-item">
                <input type="password" name="repassword" placeholder="再次确认密码" class="input-item">
                <div class="handel-button">
                    <div class="btn" @click="handleLogin">登录</div>
                    <div class="btn">注册</div>
                </div>

            </div>
        </div>
    </div>
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router';
const router = useRouter()
const handleLogin = () => {
    router.push('/login')
}
</script>

<style scoped>
html {
    height: 100%;
}

body {
    height: 100%;
}

.container {
    /* margin-top: 5%; */
    height: 100%;
    width: 100%;
    min-width: 100%;
    background-image: linear-gradient(to right, #fbc2eb, #a6c1ee);
}

.login-wrapper {
    background-color: #fff;
    width: 358px;
    height: 588px;
    border-radius: 15px;
    padding: 0 50px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    line-height: 200px;
}

.input-item {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border: 0;
    padding: 10px;
    border-bottom: 1px solid rgb(128, 125, 125);
    font-size: 15px;
    outline: none;
}

.input-item:placeholder {
    text-transform: uppercase;
}

.handel-button {
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between
}

.btn {
    text-align: center;
    padding: 10px;
    width: 48%;
    margin-top: 40px;
    background-image: linear-gradient(to right, #a6c1ee, #fbc2eb);
    color: #fff;
    margin: 0 auto;
}

.msg {
    text-align: center;
    line-height: 88px;
}

a {
    text-decoration-line: none;
    color: #abc1ee;
}
</style>